package com.yijiu.trb;

import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

/**
 * 操作
 * 
 * @author TangChao_Lenovo
 */
public class OperationActivity extends BTitleActivity implements OnClickListener
{

	private TextView cutInButton, lineOutButton;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		getWindow().setFormat(PixelFormat.RGBA_8888);
		setContentView(R.layout.operation_layout);
	}

	protected void initWidget()
	{
		super.initWidget();
		titleView.setText("操作");
		cutInButton = (Button) findViewById(R.id.cut_in);
		lineOutButton = (Button) findViewById(R.id.line_out);

		cutInButton.setOnClickListener(this);
		lineOutButton.setOnClickListener(this);
	}

	@Override
	public void onClick(View v)
	{
		switch (v.getId())
		{
		// 划入
			case R.id.cut_in:
				initIntent(this, CutIn.class);
				break;
			// 划出
			case R.id.line_out:
				initIntent(this, LineOut.class);
				break;
			default:
				break;
		}
	}
}
